package com.yjd.comm.spread.service;

import java.util.List;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.spread.model.SpreadRelationTempModel;

/**
 * <b>description</b>：人人推广关联临时表业务接口<br>
 * <b>time</b>：2015-10-16 09:33:11 <br>
 * <b>author</b>：  SongJian
 */
public interface ISpreadRelationTempService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public SpreadRelationTempModel insert(SpreadRelationTempModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(SpreadRelationTempModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	List distinctSpreaderList()throws Exception;
	
	void dealOneSpreaderData(Long spreader)throws Exception;
	
	List selectPromotionNotInExtension()throws Exception;
	List selectExtensionNotInSpreader()throws Exception;
	
	void transAllSpreader()throws Exception;
	void recoverPromotionSpreadRegistCount()throws Exception;
}
